package com.geek.admin.common.utils;

import com.geek.admin.common.constant.Base;
import com.geek.admin.system.domain.User;
import org.apache.shiro.SecurityUtils;

/**
 * @author gaozeyu
 */
public class UtilUserInfo {

    public static User getCurrentUser(){
        return (User)SecurityUtils.getSubject().getSession().getAttribute(Base.CURRENT_USER);
    }
}
